<template>
  <div class="editor-container">
    <!-- 1.头部， -->
    <van-nav-bar
      title="编辑资料"
      left-text="返回"
      left-arrow
      @click-left="$router.go(-1)"
    />
    <!-- 2.头像 -->
    <div class="Head">
      <van-image
        width="120"
        height="120"
        fit="cover"
        round
        src="https://img01.yzcdn.cn/vant/cat.jpeg"
      />
    </div>
    <!-- 3.编辑信息 -->
    <van-cell-group>
      <van-cell title="名称" value="昵称" is-link />
      <van-cell title="性别" value="男" is-link />
      <van-cell title="生日" value="2021-09-04" is-link />
    </van-cell-group>
  </div>
</template>

<script>
export default {
  name: 'editor'
}
</script>

<style lang="less">
.editor-container {
  .van-nav-bar__content {
    background-color: #0098fa;
    .van-nav-bar__text {
      color: #fff;
    }
    .van-icon-arrow-left {
      color: #fff;
    }
    .van-ellipsis {
      color: #fff;
    }
  }
  .Head {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
</style>
